<%--
  Created by IntelliJ IDEA.
  User: CMCC
  Date: 2016/8/26
  Time: 16:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<head>
    <title>管理员</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript">
        var adminSessionID =<%=session.getAttribute("SID")%>;
        var adminSessionName = "<%=session.getAttribute("SName")%>";
        if (adminSessionID === null) {
            window.location.href = "login.jsp";
        } else {
            //alert(adminSession);
        }
    </script>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/contractInfo.css"/>
    <script type="text/javascript" src="js/jquery-3.1.0.min.js"></script>
    <script type="text/javascript" src="layer/layer.js"></script>
    <script type="text/javascript" src="js/handlebars-v3.0.3.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/mui.min.js"></script>
    <script type="text/javascript" src="js/security.min.js"></script>
    <script type="text/javascript">
        window.onload = function () {
            var oUserInfo = document.getElementById('userInfo');
            var ocCntractInfo = document.getElementById('contractInfo');
            var oLogInfo = document.getElementById('logInfo');
            oUserInfo.onmousedown = function () {
                ocCntractInfo.style.backgroundColor = "#fff";
                ocCntractInfo.style.color = "#000";
                oUserInfo.style.backgroundColor = "#324e75";
                oUserInfo.style.color = "#fff";
            };
            ocCntractInfo.onmousedown = function () {
                oUserInfo.style.backgroundColor = "#fff";
                oUserInfo.style.color = "#000";
                ocCntractInfo.style.backgroundColor = "#324e75";
                ocCntractInfo.style.color = "#fff";
            }
            oUserInfo.onclick = function () {
                window.location.href = 'userMana.jsp';
            };
            ocCntractInfo.onclick = function () {
                window.location.href = 'contractMana.jsp';
            };
            oLogInfo.onclick = function () {
                window.location.href = 'logMana.jsp';
            };
            //添加合同信息


        }
    </script>
</head>

<body>
<div class="top">
    <div class="top-left">
        <p class="top-left">合同管理系统</p>
    </div>
    <div class="top-right">
        <p class="p1">欢迎管理员<span class=""> 张三 </span>的到来 <a href="#" id="logout">注销 </a></p>
    </div>
</div>
<div class="left-block">
    <ul>
        <li id="contractInfo" class="uleft-index">合同管理</li>
        <li id="userInfo" class="uleft-index">用户管理</li>
        <li id="logInfo" class="uleft-index">日志管理</li>
    </ul>
</div>
</body>
</html>
<script type="text/javascript">
    function add() {
        layer.open({
            type: 2,
            title: '添加合同信息',
            shadeClose: true,
            shade: [0.3, '#000'],
            area: ['543px', '343px'],
            content: 'addContract.html'
        });
    }
    ;
    function update(con_id, con_name) {
        layer.open({
            type: 2,
            title: '添加合同信息',
            shadeClose: true,
            shade: [0.3, '#000'],
            area: ['543px', '343px'],
            content: 'addContract.html?cid=' + con_id + '&cname=' + con_name
        });
    }
    ;
    function payRemind() {
        layer.open({
            type: 2,
            title: '分期付款时间',
            shadeClose: true,
            shade: [0.3, '#000'],
            area: ['543px', '343px'],
            content: 'payRemind.html'
        });
    }
</script>